import {createRouter, createWebHashHistory} from "vue-router"
import routes from './routes'
import {registerRouterGuards} from "./routerGuards";

const router = createRouter({
  history: createWebHashHistory(),
  routes: routes
})

router.onError((error, to, from) => {
  console.log(error)
})

registerRouterGuards(router);
export default router
